﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using ObjectPersistence;
using BusinessLayerHelper;

public partial class Admin_Controls_Mod_Contact_ContactList : ListControlBase<Contact>
{


    ContactAssembler service = new ContactAssembler();
    LinkButton bt_Delete;


    public override PersistentList<Contact> GetListObjects
    {
        get
        {
            return service.ReadCollectionAll();


        }
    }
    protected override void OnInit(EventArgs e)
    {
        bt_Delete = new LinkButton();
        bt_Delete.Text = "Delete";
        bt_Delete.Click += new EventHandler(bt_Delete_Click);
        ToolbarBox1.PlaceControls.Controls.Add(bt_Delete);

        base.OnInit(e);
    }

    void bt_Delete_Click(object sender, EventArgs e)
    {
        bt_Delete.Text = "Click";
    }
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            ToolbarBox1.Header = "Category Manager";
           

         

            LoadData();

        }
    }


}
